package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.Reservation;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CustomerReservationMapper {
    Integer cancelQuantity(Long id);

    List<TimeCountVo> countByTime(LocalDateTime start, LocalDateTime end);

    void insert(Reservation reservation);

    Page<ReservationVo> getPage(Integer status);

    Reservation selectById(Long id);

    void updateById(Reservation reservation);


    void AutoOverdue();
}
